﻿using System.Web.Mvc;

namespace OneWorks.Web.Apps.Controllers
{
    using Common;
    using OneWorks.Web.Common.Model;
    using OneWorks.Web.Extension;

    public class UserController : Controller
    {
        private readonly UserHandle _userHandle = new UserHandle();

        [Common.Filter.Class1]
        [Common.Filter.Class2]
        [Common.Filter.Class3]
        [Common.Filter.Class4]
        [HttpGet]
        public ActionResult Login()
        {
            return View();
        }

        [HttpPost]
        public CustomJsonResult Login(AccountModel model)
        {
            return CustomJson(_userHandle.Login(model));
        }

        public ActionResult Create()
        {
            return View();
        }

        public ActionResult List()
        {
            return View();
        }

    }
}
